package com.mingdong.second.danli;

public class DobbleIfSingleton {

	private DobbleIfSingleton(){}
	
	private static volatile DobbleIfSingleton intance = null;
	
	public static DobbleIfSingleton getInstance(){
		
		if(intance == null){
			synchronized (DobbleIfSingleton.class) {
				if(intance == null){
					intance = new DobbleIfSingleton();
				}
			}
		}
		return intance;
	}
	
}
